#define _CRT_SECURE_NO_WARNINGS
#include"LIst.h"

int main()
{
	LTNode* list = LTInit();
	LTPushBack(list, 1);
	LTPushBack(list, 2);
	LTPushBack(list, 3);
	LTPushBack(list, 4);
	LTPushFront(list, 1);
	LTPushFront(list, 2);
	LTPushFront(list, 3);
	LTPushFront(list, 4);

	LTPopBack(list);
	LTPopBack(list);
	LTPopBack(list);
	LTPopBack(list);
	LTPopFront(list);
	LTPrint(list);

	LTNode* pos = LTFind(list, 1);
	LTInsert(pos, 1);
	
	LTErase(pos);
	pos = LTFind(list, 1);
	LTErase(pos);
	LTPrint(list);

	LTDesTroy(&list);
	//list = NULL;
	LTPrint(list);

	return 0;
}